/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.sae.model.v20190506;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.sae.transform.v20190506.DescribeWebApplicationResourceStaticsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
 * @author auto create
 * @version 
 */
public class DescribeWebApplicationResourceStaticsResponse extends AcsResponse {

	private Integer code;

	private String message;

	private String requestId;

	private Boolean success;

	private Data data;

	public Integer getCode() {
		return this.code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getRequestId() {
		return this.requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public Boolean getSuccess() {
		return this.success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public Data getData() {
		return this.data;
	}

	public void setData(Data data) {
		this.data = data;
	}

	public static class Data {

		private Integer length;

		private List<WebAppStaticsItem> webAppStatics;

		public Integer getLength() {
			return this.length;
		}

		public void setLength(Integer length) {
			this.length = length;
		}

		public List<WebAppStaticsItem> getWebAppStatics() {
			return this.webAppStatics;
		}

		public void setWebAppStatics(List<WebAppStaticsItem> webAppStatics) {
			this.webAppStatics = webAppStatics;
		}

		public static class WebAppStaticsItem {

			private Long cpuUsage;

			private Long invocations;

			private Long internetTrafficOut;

			private Long memoryUsage;

			public Long getCpuUsage() {
				return this.cpuUsage;
			}

			public void setCpuUsage(Long cpuUsage) {
				this.cpuUsage = cpuUsage;
			}

			public Long getInvocations() {
				return this.invocations;
			}

			public void setInvocations(Long invocations) {
				this.invocations = invocations;
			}

			public Long getInternetTrafficOut() {
				return this.internetTrafficOut;
			}

			public void setInternetTrafficOut(Long internetTrafficOut) {
				this.internetTrafficOut = internetTrafficOut;
			}

			public Long getMemoryUsage() {
				return this.memoryUsage;
			}

			public void setMemoryUsage(Long memoryUsage) {
				this.memoryUsage = memoryUsage;
			}
		}
	}

	@Override
	public DescribeWebApplicationResourceStaticsResponse getInstance(UnmarshallerContext context) {
		return	DescribeWebApplicationResourceStaticsResponseUnmarshaller.unmarshall(this, context);
	}

	@Override
	public boolean checkShowJsonItemName() {
		return false;
	}
}
